#include "Fmk.pb.h"
#include <iostream>
#include <fstream>

int main() {
	MsgCommonOperate msg;
	msg.set_operate_type("zoom");
	msg.set_workflow_name("Coronary");
	msg.set_cell_id("VRCell");
	msg.set_guid("测试一下中文兼容性怎么样");
	auto result = msg.SerializeAsString();

	std::ofstream of("result");
	if (!of)
	{
		std::cerr << "Failed to open file" << std::endl;
		return -1;
	}

	of.write(result.c_str(), result.size());
	of.close();
    return 0;
}
